import java.util.*;

/**
 * @author LKQ
 * @date 2022/3/14 8:54
 * @description
 */
public class Solution {
    public static void main(String[] args) {

    }
    public int arraySign(int[] nums) {
        int negative = 0;
        for (int num: nums) {
            if (num == 0) {
                return 0;
            }
            if (num < 0) {
                negative++;
            }
        }
        return negative % 2 == 0 ? 1 : -1;
    }
}
